package net.sytes.hamir.importadorchess;

public class Logger {
	private static Logger singleton;
	
	public static Logger getSingleton(){
		if(singleton == null){
			singleton = new Logger();
		}

		return singleton;
	}
	
	public void logError(String message, Throwable t){
		System.out.println("ERRO: " + message);
		if(t != null){
			t.printStackTrace();
		}
	}
	
	public void logError(String message){
		logError(message, null);
	}
	
	public void logVerbose(String message){
		System.out.println(message);
	}
}
